package oop3.pet;

public class PetTest2 {

	public static void main(String[] args) {
		// Pet c = new Cat("小花花", 88, 99, "波斯猫", "公");
		// c.show();
		//
		// System.out.println(">>>>>>>>>>>>>>>>>>>");
		// Object obj = new Cat("加菲", 88, 99, "波斯猫", "公");
		// System.out.println(obj);

		Cat c1 = new Cat("加菲", 88, 99, "波斯猫", "公");
		Cat c2 = new Cat("加菲", 56, 67, "波斯猫", "母");
		Crocodile cd = new Crocodile("小鬼", 77, 90, "扬子鳄");
		System.out.println(c1 == c2);
		System.out.println(c1.equals(c2));
		boolean f = c1.equals(cd);
		System.out.println(f);
	}

}
